package com.easycarebn.request.data;

import java.util.Calendar;

public class UserItem {
    private String email;
    private String email_again;
    private String password;
    private int sex;
    private String fullname;
    private int year;
    private int month;
    private int date;

    public UserItem(String email, String password, int sex, String fullname, Calendar birthday) {
        this.email = email;
        this.email_again = email;
        this.password = password;
        this.sex = sex;
        this.fullname = fullname;
        this.year = birthday.get(Calendar.YEAR);
        this.month = birthday.get(Calendar.MONTH);
        this.date = birthday.get(Calendar.DAY_OF_MONTH);
    }
    
    public UserItem() {
        // TODO Auto-generated constructor stub
    }
    
    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getEmailAgain() {
        return email_again;
    }

    public void setEmailAgain(String emailAgain) {
        this.email_again = emailAgain;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public String getFullname() {
        return fullname;
    }

    public void setFullname(String fullname) {
        this.fullname = fullname;
    }

    public int getYear() {
        return year;
    }

    public int getMonth() {
        return month;
    }

    public int getDay() {
        return date;
    }

    public void setBirthday(Calendar birthday) {
        this.year = birthday.get(Calendar.YEAR);
        this.month = birthday.get(Calendar.MONTH);
        this.date = birthday.get(Calendar.DAY_OF_MONTH);
    }

}
